import request from '../../../utils/request'

function getCompany() {
  return request({
    url: `/sys/company/getList`,
    method: 'get'
  })
}

function addCompany(data) {
  return request({
    url: '/sys/company',
    method: 'post',
    data
  })
}

function editCompany(data) {
  return request({
    url: '/sys/company',
    method: 'put',
    data
  })
}

function delCompany(data) {
  return request({
    url: '/sys/company',
    method: 'delete',
    data
  })
}

export { getCompany, addCompany, editCompany, delCompany }
